package com.beta.backend.gateway.factory;

import com.beta.backend.gateway.filter.DeveloperAuthGatewayFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * @description 开发者授权（针对服务端、接口），
 * @author: zdwang
 * @date 2021/12/2 19:24
 */
@Component
public class DeveloperAuthGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {

    @Autowired
    private DeveloperAuthGatewayFilter developerAuthGatewayFilter;

    @Override
    public GatewayFilter apply(Object config) {
        return developerAuthGatewayFilter;
    }
}
